libxc: fix PV vNUMA guest memory allocation
authorWei Liu <wei.liu2@citrix.com>
Mon, 6 Jul 2015 13:47:40 +0000 (14:47 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 7 Jul 2015 14:10:45 +0000 (15:10 +0100)
commit826ca36fa3be0da906a6f3ebd7229e50c9f67bee
treeea182d4fbeae227811e897e97d749d9c219fde83
parent6a6c199a8989482d9bcb98873aca1f61664940b1
libxc: fix PV vNUMA guest memory allocation

In 415b58c1 (tools/libxc: Batch memory allocations for PV guests) the
number of super pages is calculated with the number of total pages. That
is wrong. It breaks PV guest vNUMA. The correct number of super pages
should be derived from the number of pages within that virtual NUMA
node.

Also change the name and type of super page variable to match the naming
convention and type of normal page variable. Make the necessary
adjustment to make code compile.

Reported-by: Dario Faggioli <dario.faggioli@citrix.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-and-Tested-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_dom_x86.c